<?php

/*
 * This helper is for boolean values like active, status, publish, etc
 */

 function online( $val=1, $clickable=false ){
 	if( $val ){
 		return '<img src="'.base_url('/assets/images/online-icon.png').'" class="16x16_png" />';
 	} else {
		return '<img src="'.base_url('/assets/images/offline-icon.png').'" class="16x16_png" />';
 	}
 }

 function status( $val=1, $clickable=false ){
 	if($val){
 		return '<img src="'.base_url('/assets/images/check.png').'" class="16X16_png" />';
 	} else {
 		return '<img src="'.base_url('/assets/images/wrong.png').'" class="16X16_png" />';
 	}
 }